package com.wwj.auction.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.auction.admin.entity.UserInfo;
import com.wwj.auction.admin.entity.vo.PageModel;
import com.wwj.auction.admin.entity.vo.UserInfoVo;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wwj
 * @since 2021-08-25
 */
public interface UserInfoService extends IService<UserInfo> {

    /**
     * 分页查询买家用户信息，若是携带查询条件，还需进行条件筛选
     *
     * @param page
     * @param limit
     * @param params
     */
    PageModel<UserInfoVo> listForBuyer(Integer page, Integer limit, Map<String, Object> params, Integer userType);

    /**
     * 锁定或解锁用户
     *
     * @param id
     * @param status
     */
    void lock(Integer id, Integer status);

    /**
     * 查封或解封店铺
     * @param id
     * @param status
     */
    void lockStore(Integer id, Integer status);
}
